A partner can be a client or a vendor, currently we only use them for clients.
| name | value |
|---|---|
| partnerNumber | P-31011 |
| personType | NATURAL_PERSON |
| givenName | Michelle |
| familyName | Matthieu |
| contactCaption | Michelle Matthieu |
| postalAddress | “name”: “Michelle Matthieu”, “street”: “An der Wandse 34”, “zipcode”: “22123”, “city”: “Hamburg”, “country”: “Germany” |
| officePhoneNumber | +49 40 123456 |
| emailAddress | michelle.matthieu@example.org |
| birthday | 1951-03-25 |
| birthPlace | Neustadt a.d.R. |
| birthName | Eichbaum |
HTTP GET "/api/hs/office/persons?name=Hostsharing+eG" \
-H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
`# {` \
`# "sub" : "uuid<hsh-alex_superuser>"` \
`# }`
=> status: 200 OK
[ {
"uuid" : "882bda1d-4e5e-42f8-afdd-b9741d1c1f4e", // Person: Hostsharing eG
"personType" : "LEGAL_PERSON",
"tradeName" : "Hostsharing eG",
"salutation" : null,
"title" : null,
"givenName" : null,
"familyName" : null
} ]
Even in production data we expect this query to return just a single result.
HTTP POST "/api/hs/office/persons" \
-H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
`# {` \
`# "sub" : "uuid<hsh-alex_superuser>"` \
`# }` \
<<EOF
{
"personType" : "NATURAL_PERSON",
"givenName" : "Michelle",
"familyName" : "Matthieu"
}
EOF
=> status: 201 CREATED 53869a92-66f1-4e83-9850-80f2a708f39f
HTTP POST "/api/hs/office/contacts" \
-H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
`# {` \
`# "sub" : "uuid<hsh-alex_superuser>"` \
`# }` \
<<EOF
{
"caption" : "Michelle Matthieu",
"postalAddress" : {
"name" : "Michelle Matthieu",
"street" : "An der Wandse 34",
"zipcode" : "22123",
"city" : "Hamburg",
"country" : "Germany"
},
"phoneNumbers" : {
"office" : "+49 40 123456"
},
"emailAddresses" : {
"main" : "michelle.matthieu@example.org"
}
}
EOF
=> status: 201 CREATED 8c06e07a-89e5-4b36-8049-09d785e2d47d
HTTP POST "/api/hs/office/partners" \
-H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
`# {` \
`# "sub" : "uuid<hsh-alex_superuser>"` \
`# }` \
<<EOF
{
"partnerNumber" : "P-31011",
"partnerRel" : {
"anchor.uuid" : "882bda1d-4e5e-42f8-afdd-b9741d1c1f4e", // Person: Hostsharing eG
"holder.uuid" : "53869a92-66f1-4e83-9850-80f2a708f39f", // Person: Michelle Matthieu
"contact.uuid" : "8c06e07a-89e5-4b36-8049-09d785e2d47d" // Contact: Michelle Matthieu
},
"details" : {
"birthday" : "1951-03-25",
"birthPlace" : "Neustadt a.d.R.",
"birthName" : "Eichbaum"
}
}
EOF
=> status: 201 CREATED 7d1e5750-8a7a-46cd-8475-29a568d25ded
HTTP GET "/api/hs/office/relations?relationType=PARTNER&contactData=Michelle+Matthieu" \
-H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
`# {` \
`# "sub" : "uuid<hsh-alex_superuser>"` \
`# }`
=> status: 200 OK
[ {
"uuid" : "c0f43b0d-472a-45b3-9f6b-969c728b683b",
"anchor" : {
"uuid" : "882bda1d-4e5e-42f8-afdd-b9741d1c1f4e", // Person: Hostsharing eG
"personType" : "LEGAL_PERSON",
"tradeName" : "Hostsharing eG",
"salutation" : null,
"title" : null,
"givenName" : null,
"familyName" : null
},
"holder" : {
"uuid" : "53869a92-66f1-4e83-9850-80f2a708f39f", // Person: Michelle Matthieu
"personType" : "NATURAL_PERSON",
"tradeName" : null,
"salutation" : null,
"title" : null,
"givenName" : "Michelle",
"familyName" : "Matthieu"
},
"type" : "PARTNER",
"mark" : null,
"contact" : {
"uuid" : "8c06e07a-89e5-4b36-8049-09d785e2d47d", // Contact: Michelle Matthieu
"caption" : "Michelle Matthieu",
"postalAddress" : {
"zipcode" : "22123",
"country" : "Germany",
"city" : "Hamburg",
"street" : "An der Wandse 34",
"name" : "Michelle Matthieu"
},
"emailAddresses" : {
"main" : "michelle.matthieu@example.org"
},
"phoneNumbers" : {
"office" : "+49 40 123456"
}
}
} ]
generated on 2026-08-10 04:34:19 for branch HEAD